﻿namespace MyWebLog.Logic.Models.Security
{
    /// <summary>
    /// A blog authorization is a combination of blog, user, and permission
    /// </summary>
    public class BlogAuthorization
    {
        /// <summary>
        /// The blog to which this authorization applies
        /// </summary>
        public Blog Blog { get; set; }

        /// <summary>
        /// The user to which this authorization applies
        /// </summary>
        public BlogUser User { get; set; }

        /// <summary>
        /// The permission level granted by this authorization
        /// </summary>
        public Permission Permission { get; set; }
    }
}